export function padZero(num,length) {
	length = /^\d+$/.test(length)?length:2;
	return (Array(length).join(0) + num).slice(-length);
}
export function hideOptionMenu(){
	// #ifdef H5
		if (typeof WeixinJSBridge == "undefined") {
			if (document.addEventListener) {
				document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
			} else if (document.attachEvent) {
				document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
				document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
			}
		} else {
			onBridgeReady();
		}
	// #endif
}
function onBridgeReady() {
	WeixinJSBridge.call('hideOptionMenu');
}